import express from 'express'
import bodyParser from 'body-parser' // post 数据是需要
import routerApi from './server/router'

const app = express()

app.use(bodyParser.json())

app.use('/api', routerApi)

app.listen('3001', () => {
    console.log('server run localhost:3001')
})